﻿using Basic.FlowRemoteModel.Application.Model;
using WeDonekRpc.Helper.Validate;

namespace Basic.FlowGatewayModule.Model
{
    public class AuditSignAdd
    {
        [NumValidate("flow.log.id.error", 1)]
        public long LogId
        {
            get;
            set;
        }
        [NumValidate("flow.sign.file.id.error", 1)]
        public long SignFileId
        {
            get;
            set;
        }

        [NumValidate("flow.source.file.id.error", 1)]
        public long SourceFileId
        {
            get;
            set;
        }
        [NumValidate("flow.sign.pdf.file.id.error", 1)]
        public long FileId
        {
            get;
            set;
        }
        [NullValidate("flow.sign.pdf.file.uri.null")]
        [LenValidate("flow.sign.pdf.file.uri.len", 10, 255)]
        public string FileUri
        {
            get;
            set;
        }

        [NumValidate("flow.sign.item.id.error", 1)]
        public long SignItemId
        {
            get;
            set;
        }
        [NullValidate("flow.sign.log.item.null")]
        public AuditSignFileLogItem[] Items
        {
            get;
            set;
        }
    }
}
